
//教师（编号、姓名、性别、所授课程）
class teacher extends people{

    teacher(int i,String n,String g){
        id=1;
        name=n;
        gender=g;
    }
    public String toString(){
        return " 教师ID:"+this.id+" 教师姓名:"+this.name+" 教师性别:"+this.gender;
    }
}